<?python
	
	def get_class(section_name, active_section):
		if active_section == section_name:
			return "current"
		return "";
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?python import sitetemplate ?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" py:extends="sitetemplate">

<head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head'" py:attrs="item.items()">
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title py:replace="''">Your title goes here</title>
    <script src="/static/javascript/master.js" type="text/javascript" />
    <link href="/static/css/master.css" media="screen" rel="Stylesheet" type="text/css" />
    <meta py:replace="item[:]"/>
</head>

<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">
<div id="header">
</div>

<div id="container">
<div id="navigation">
<ul class="navigation">
<li class="navigation">
<a class="${get_class('dashboard', active_section)}" href="/dashboard">Dashboard</a>
<a class="${get_class('space', active_section)}" href="/space">Space</a>
<a py:if="not tg.identity.anonymous and ('page-edit' in tg.identity.permissions or 'root' in tg.identity.groups)" class="${get_class('template', active_section)}" href="/template">Template</a>
<a py:if="'root' in tg.identity.groups" class="${get_class('user', active_section)}" href="/user">User</a>
<a py:if="tg.identity.anonymous" class="${get_class('register', active_section)}" href="/registration/new">register</a>
</li>
</ul>

<span class="navuser" py:if="not tg.identity.anonymous">${_("Welcome")} ${tg.identity.user.display_name}</span>
<ul class="navuser">
<li class="navuser" py:if="tg.identity.anonymous">
<a href="/login">Login</a>
</li>
<li class="navuser" py:if="not tg.identity.anonymous">
<a class="${get_class('profile', active_section)}" href="/registration">Profile</a>
<a py:if="not tg.identity.anonymous" href="/logout">Logout</a>
</li>
</ul>

</div>

<div id="content">

<div py:if="tg_flash" class="flash" py:content="tg_flash"></div>

<div py:replace="item[:]"/>
</div>
</div>

<!-- End of main_content -->
<div id="footer">
C @ COPYRIGHT
</div>
</body>

</html>
